package com.zp.system.entity.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 科室分组业务对象
 *
 * @author zhang peng
 * @date 2022-12-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysOrgDeptGroupBo extends BaseEntity {

    /**
     * 科室分组
     */
    @NotBlank(message = "科室分组不能为空", groups = {EditGroup.class})
    private String deptGroupId;

    /**
     * 科室分组名称
     */
    @NotBlank(message = "科室分组名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String deptGroupName;

    /**
     * 机构id
     */
    @NotBlank(message = "机构id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String orgId;

    /**
     * 显示顺序
     */
    private Long orderNum;

    /**
     * 备注
     */
    private String remark;

    /**
     * 选中科室id数组
     */
    private String[] deptIds;


}
